package hxy.bytecode.spring.bean.service.impl;

import hxy.bytecode.spring.bean.entity.UserEntity;
import hxy.bytecode.spring.bean.repository.UserRepository;
import hxy.bytecode.spring.bean.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author eric
 * @date 11/6/19 9:13 AM
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserRepository userRepository;

    @Override
    public UserEntity getUserById(Integer id){
        return   userRepository.getUserById(id);
    }
}
